class UserLotteryModel {
  String id;
  String lotteryNumber;
  String rotaryTableId;
  int userId;
  String username;
  String imageUrl;
  String type;
  String name;
  int amount;
  String description;
  List<String> entityImageUrls;
  String recipients;
  String phone;
  String cityName;
  String provinceName;
  String address;
  String createdTime;
  String updatedTime;

  UserLotteryModel(
      {this.id,
      this.lotteryNumber,
      this.rotaryTableId,
      this.userId,
      this.username,
      this.imageUrl,
      this.type,
      this.name,
      this.amount,
      this.description,
      this.entityImageUrls,
      this.recipients,
      this.phone,
      this.cityName,
      this.provinceName,
      this.address,
      this.createdTime,
      this.updatedTime});

  UserLotteryModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    lotteryNumber = json['lotteryNumber'];
    rotaryTableId = json['rotaryTableId'];
    userId = json['userId'];
    username = json['username'];
    imageUrl = json['imageUrl'];
    type = json['type'];
    name = json['name'];
    amount = json['amount'];
    description = json['description'];
    entityImageUrls = json['entityImageUrls'].cast<String>();
    recipients = json['recipients'];
    phone = json['phone'];
    cityName = json['cityName'];
    provinceName = json['provinceName'];
    address = json['address'];
    createdTime = json['createdTime'];
    updatedTime = json['updatedTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['lotteryNumber'] = this.lotteryNumber;
    data['rotaryTableId'] = this.rotaryTableId;
    data['userId'] = this.userId;
    data['username'] = this.username;
    data['imageUrl'] = this.imageUrl;
    data['type'] = this.type;
    data['name'] = this.name;
    data['amount'] = this.amount;
    data['description'] = this.description;
    data['entityImageUrls'] = this.entityImageUrls;
    data['recipients'] = this.recipients;
    data['phone'] = this.phone;
    data['cityName'] = this.cityName;
    data['provinceName'] = this.provinceName;
    data['address'] = this.address;
    data['createdTime'] = this.createdTime;
    data['updatedTime'] = this.updatedTime;
    return data;
  }
}